// 封装和用户相关的所有接口函数
import httpInstance from '@/utils/http.js'

/**
 * 用户登录
 * @param {*} param0 
 * @returns 
 */
export const loginAPI = ({ account, password }) =>{
  return httpInstance({
    url:'/login',
    method:'POST',
    data:{
      account,
      password
    }
  })
}

/**
 * 猜你喜欢
 * @param {*} param0 
 * @returns 
 */
export const getLikeListAPI = ({ limit = 4 })=>{
  return httpInstance({
    url: '/goods/relevant',
    params: {
      limit
    }
  })
}